<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var obj = {
        //     uname: '张三',
        //     age: 19,
        //     sex: '男',
        //     say: function() {
        //         console.log(666);
        //     }
        // }
        // console.log(obj.uname);
        // console.log(obj['uname']);
        // obj.say();

        var obj = new Object();
        obj.uname = '张三';
        obj.age = 19;
        obj.sex = '男';
        obj.say = function() {
            console.log(666);
        }
        console.log(obj.uname);
        obj.say();
    </script>
</head>

<body>

</body>

</html>